#include "KvPhotoPickOp.h"
#include <QImage>

void* KvPhotoPickOp::doRead_(const QString& filePath)
{
    auto img = std::make_unique<QImage>();
    if (!img->load(filePath))
        return nullptr;

    return img.release();
}

void KvPhotoPickOp::dropFileObject_(void* fileObj)
{
    delete (QImage*)(fileObj);
}
